package com.demo.functionInterface;

/**
 * @author gy
 * @date 2022/5/10
 */
@FunctionalInterface
interface GreetingService
{
    void sayMessage(String message);
}

class A{
    public static void main(String[] args) {
        GreetingService g = message -> System.out.println("hello" + message);
        g.sayMessage(" jack");
    }
}

